class CreateDeliveryMen < ActiveRecord::Migration
  def self.up
    create_table :delivery_men do |t|
      t.string :name, :null => false
      t.string :surname, :null => false
      t.string :phonenumber, :null => false
      t.string :vehicle

      # Aggiunge il campo restaurant_id
      t.references :restaurant
      t.timestamps
    end
  end

  def self.down
    drop_table :delivery_men
  end
end
